<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/30
 * Time: 23:12
 */

if (empty($url)) $url = $_SERVER['HTTP_REFERER'];// 默认跳到上一个页面
$result = "<h1>{$msg}，五秒后跳转<a href='{$url}'>点击跳转</a></h1>";
header("refresh: {$jumpTime}; url={$url}");//五秒跳转
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>消息提示</title>
</head>
<body>
<?php echo $result; ?>
</body>
</html>
